<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<head>
<meta name="menu" content="assetMenu" />
<meta name="nav" content="1" />
<meta name="acc" content="1" />
<title>新闻管理</title>
<script>
$(document).ready(function() {
	 $("#createDate").addClass("Wate").bind("click", function(){
	 WdatePicker({skin:'whyGreen',minDate:'1900-10-01',maxDate:'%y-%M-%d' , dateFmt:'yyyy-MM-dd'});});
});	
</script>
<style type="">

</style>
</head>
<body>
<div id="heading" class="new"><h6>新闻列表</h6></div>
<div id="message"><s:actionmessage theme="custom"
	cssClass="success" /></div>
<form id="mainForm" action="${ctx }/asset/message/news.action" method="get" class="yform">
<div id="filter">
<ul>
<li>发布日期:<input type="text" id="createDate" name="filter_GED_createDate" value="${param['filter_GED_createDate']}" /></li>
<li>重要程度:<pt:code category="2025" prompt="全部" name="filter_LIKES_importance" default="${param['filter_LIKES_importance']}"></pt:code></li>
<li>类型:<pt:code prompt="全部" category="2024" name="filter_LIKES_noticeType" default="${param['filter_LIKES_noticeType']}"></pt:code></li>
</ul>
<div class="type-button" ><input type="button"  onclick="search();" class="search" value="查询"/></div>
 </div>
<div id="content">
<table  class="front">
	<tr>
		<th><a id="createDate" href="javascript:sort('createDate','asc')">序号</a></th>
		<th><a id="importance" href="javascript:sort('importance','asc')">重要程度</a></th>
		<th><a id="title" href="javascript:sort('title','asc')">标题</a></th>
		<th><a id="noticeType" href="javascript:sort('noticeType','asc')">类型</a></th>
		<th><a id="createDate" href="javascript:sort('createDate','asc')">发布日期</a></th>
		<th>操作</th>
	</tr>
	<c:forEach items="${page.result}" var="news" varStatus="status">
		<tr>
			<td>${page.first+status.index }</td>
			<td>  <pt:code category="2025" code="${news.importance}"></pt:code>	</td>
			<td><pt:text limit="15" >${news.title}</pt:text></td>
			<td>
	        <pt:code category="2024" code="${news.noticeType}"></pt:code>	
			     </td>
			<td><fmt:formatDate value="${news.createDate}" pattern="yyyy-MM-dd HH:mm"/></td>
			<td><a
				href="${ctx}/asset/message/news!input.action?id=${news.id}">编辑</a> <a
				href="${ctx}/asset/message/news!delete.action?id=${news.id}" onclick="return confirmDelete();">删除</a>
			<a href="${ctx}/asset/message/news!view.action?id=${news.id}">查看</a>
			</td>
		</tr>
	</c:forEach>
</table>
</div>
<jsp:include page="/common/page.jsp" />
<div class="type-button"><input onclick="location.href='${ctx}/asset/message/news!input.action'" type="button" class="submit" value="新增" />
</div>
</form>
</body>
